{{ $dateCreated := (now.UTC.Format "2006-01-02T15:04:05Z07:00") }}

{{ if (.Params.date) }}
    {{ $dateCreated = (.Date.UTC.Format "2006-01-02T15:04:05Z07:00") }}
{{ end }}

{{ return ($dateCreated) }}
